import request from '@/utils/request'

// 查询招聘渠道列表
export function listRecruitChannel(query) {
  return request({
    url: '/system/recruitChannel/list',
    method: 'get',
    params: query
  })
}

// 查询招聘渠道详细
export function getRecruitChannel(id) {
  return request({
    url: '/system/recruitChannel/' + id,
    method: 'get'
  })
}

// 新增招聘渠道
export function addRecruitChannel(data) {
  return request({
    url: '/system/recruitChannel',
    method: 'post',
    data: data
  })
}

// 修改招聘渠道
export function updateRecruitChannel(data) {
  return request({
    url: '/system/recruitChannel',
    method: 'put',
    data: data
  })
}

// 删除招聘渠道
export function delRecruitChannel(id) {
  return request({
    url: '/system/recruitChannel/' + id,
    method: 'delete'
  })
}
